/*
 * @Author: lz08 liuzheng@ceepower.com
 * @Date: 2022-11-30 14:19:50
 * @LastEditors: lz08 liuzheng@ceepower.com
 * @LastEditTime: 2022-12-02 14:55:10
 * @FilePath: \vue3-ts-cms\src\main.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/permission'
// dataV可视化组件库
import dataV from '@jiaminghi/data-view'

// 注册全局组件
import globalComponent from '@/components/index'

// 引入ElementUI Plus
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';

const app = createApp(App)
app.use(store).use(router).use(ElementPlus)
app.use(dataV).mount('#app')
for (const componentItme in globalComponent) {
  app.component(componentItme, globalComponent[componentItme])
}